package com.bysj.dao;

import com.bysj.entity.News;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

@Mapper
public interface NewsDao {
    List<News> getAll(@Param("content") Map map);

    List<News> selectById(Integer id);
    //根据id删除资讯
    void deleteNewsById(Integer id);
    //添加资讯
    void addNews(News news);
}
